#include <gtest\gtest.h>
#include "NonResidentStudent.h"

TEST(NonResidentStudentTest, testToString) {
    NonResidentStudent student("Clark", "Kent", "1234", true, 100.00, 50.00);
    ASSERT_EQ("\nFirst name:\t\tClark\nLast name:\t\tKent\n"
            "Student ID:\t\t1234\nTuition Amount:\t\t$50.00\n\n",
            student.toString());
}

TEST(NonResidentStudentTest, testComputeTuition) 
{
    NonResidentStudent student("Tristan", "Caruso", "1234", true, 300.00, 50.00);
    Course course("Math", 3, "Monday", "1:00 PM");  
    student.enrollCourse(course);
    student.computeTuition();
    ASSERT_EQ(950.0, student.getTuitionAmount());
}
